import useRequest from "@/api/useRequest"
export class openPoseController {

  static syncData():Promise<any> {
    return useRequest({
      url: "/openPose/startSyncDataTask",
      method: "get"
    })
  }
  static uploadToChuangTu(id:string): Promise<any> {
    return useRequest({
      url: "/openPose/uploadToTuChuang/"+id,
      method: "get"
    })
  }
  static addOpenPose(data:any): Promise<any> {
    return useRequest({
      url: "/openPose/saveOpenPose",
      method: "post",
      data
    })
  }

  static getOpenPoseList(data:any): Promise<any> {
    return useRequest({
      url: "/openPose/getOpenPose",
      method: "post",
      data
    })
  }

  static createOpenPose(data:any): Promise<any> {
    return useRequest({
      url: "/openPose/createOpenPose",
      method: "post",
      data
    })
  }

  static deleteOpenPose(id:any): Promise<any> {
    return useRequest({
      url: "/openPose/deleteOpenPose?id="+id,
      method: "get"
    })
  }
}
